package com.g8.pethospitallearnbackend.entity;

import java.io.Serializable;

public class Charge implements Serializable {
    private String chargeId;

    private String chargeName;

    private Double chargePrice;

    private String chargeDesc;

    private static final long serialVersionUID = 1L;

    public String getChargeId() {
        return chargeId;
    }

    public void setChargeId(String chargeId) {
        this.chargeId = chargeId;
    }

    public String getChargeName() {
        return chargeName;
    }

    public void setChargeName(String chargeName) {
        this.chargeName = chargeName;
    }

    public Double getChargePrice() {
        return chargePrice;
    }

    public void setChargePrice(Double chargePrice) {
        this.chargePrice = chargePrice;
    }

    public String getChargeDesc() {
        return chargeDesc;
    }

    public void setChargeDesc(String chargeDesc) {
        this.chargeDesc = chargeDesc;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", chargeId=").append(chargeId);
        sb.append(", chargeName=").append(chargeName);
        sb.append(", chargePrice=").append(chargePrice);
        sb.append(", chargeDesc=").append(chargeDesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Charge other = (Charge) that;
        return (this.getChargeId() == null ? other.getChargeId() == null : this.getChargeId().equals(other.getChargeId()))
            && (this.getChargeName() == null ? other.getChargeName() == null : this.getChargeName().equals(other.getChargeName()))
            && (this.getChargePrice() == null ? other.getChargePrice() == null : this.getChargePrice().equals(other.getChargePrice()))
            && (this.getChargeDesc() == null ? other.getChargeDesc() == null : this.getChargeDesc().equals(other.getChargeDesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getChargeId() == null) ? 0 : getChargeId().hashCode());
        result = prime * result + ((getChargeName() == null) ? 0 : getChargeName().hashCode());
        result = prime * result + ((getChargePrice() == null) ? 0 : getChargePrice().hashCode());
        result = prime * result + ((getChargeDesc() == null) ? 0 : getChargeDesc().hashCode());
        return result;
    }
}